import {view, binder, View} from "adajs";
import CourseService from "./state.js";

@view({
    className: "survivelist",
    template: "./template.html",
    style: "./style.scss",
    dataset: {
        service: CourseService
    }
})
class CourseList extends View {
    @binder("openPage")
    openNews({item}) {
        this.dispatchEvent("gotoPage", `/admin/survive/detail?id=${item.id}`);
    }
}

export default CourseList;